-- GENERATED SPELL FOR [Angered Soul Fragment] --


function spell0_23398(pUnit, Event) --@Anger,Self--
pUnit:FullCastSpellOnTarget(41986,pUnit)
pUnit:RegisterEvent('Sorts_23398', 3000, 1)
end

function Sorts_23398(pUnit, Event)
local choix_sorts_23398 = math.random(0, 0)
if choix_sorts_23398 == 0 then
pUnit:RegisterEvent('spell0_23398', 1, 1)
end
end

function mob23398_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23398', math.random(1500, 3000), 1)
end

function mob23398_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23398_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23398_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23398, 1, 'mob23398_Action')
RegisterUnitEvent(23398, 2, 'mob23398_Leave')
RegisterUnitEvent(23398, 3, 'mob23398_Kill')
RegisterUnitEvent(23398, 4, 'mob23398_Die')
